﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.HomeViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Brjóstagjöf.is
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <h2>
            Flokkar</h2>
        <ul>
            <% foreach (var k in Model.Keywords)
               { %>
            <li>
                <%: Html.ActionLink(k.Title, "ListOfArticlesByKeyword", "Home", new { k.ID }, null)%></li>
            <% } %>
        </ul>
        <div id="mario">
            <a href="http://en.wikipedia.org/wiki/Mario_Bros" target="_blank">
                <img src="/Images/ApotekAugl.png" alt="" />
            </a>
        </div>
    </div>
    <div id="augl">
        <a href="http://www.modurast.is" target="_blank">
            <img src="/Images/modurastaugl.png" alt="auglysing" style="height: 70px; width: 550px;" />
        </a>
    </div>
    <div id="dalkar">
        <fieldset id="nyjargreinar">
            <legend>Nýjar Greinar</legend>
            <ul>
                <% foreach (var a in Model.NewArticles)
                   { %>
                <li>
                    <%: Html.ActionLink(a.Title, "Article", "Article", new { a.ID }, null)%>
                </li>
                <% } %>
            </ul>
        </fieldset>
        <fieldset id="mestlesid">
            <legend>Mest Lesið</legend>
            <ul>
                <% foreach (var a in Model.PopularArticles)
                   { %>
                <li>
                    <%: Html.ActionLink(a.Title, "Article", "Article", new { a.ID }, null)%>
                </li>
                <% } %>
            </ul>
        </fieldset>
    </div>
</asp:Content>